.custom_audio_player_p {
  display: inline-block;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  background-color: #1b1c1d;
  border-radius: 10px;

  position: relative;
  transition: background-color 0.3s ease;
  min-height: 30px;
  max-height: 40px;

  border: 1px dashed grey;
  max-width: 80vw;
}

button {
  background-color: transparent;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  margin: 0 5px;
  transition: color 0.3s ease;
}

button:focus {
  outline: none;
}

.control_group_p {
  position: absolute;
  width: 140px;
  justify-content: space-between;
  gap: 10px;
  align-items: center;

  margin-top: 10px;
  right: 0px;
}

button.bi-arrow-repeat {
  border-radius: 50%;
  background-color: #2e2e2e;
  padding: 8px;
  transition: background-color 0.3s ease;
}

.play_pause_p_p {
  position: absolute;
  left: 40px;
  bottom: 0px;
}

button.bi-arrow-repeat.active_repeat_button {
  background-color: #483a38;
}

.progress_bar_p::before {
  content: "";
  position: absolute;
  top: -10px;

  bottom: -10px;
  background: transparent;
}

.volume_slider_p {
  -webkit-appearance: none;
  height: 2px;
  position: absolute;
  right: 50px;
  bottom: 20px;
  width: 10px;
  opacity: 1;

  max-height: 60px;
  z-index: 4000;
}
.volume_slider_p::-moz-range-track {
  background: #3c3c3c;
  border-radius: 5px;
  height: 100%;
}

.volume_slider_p::-ms-track {
  background: #3c3c3c;
  border-radius: 5px;
  height: 100%;
  border-color: transparent;
}

.volume_slider_p::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 2px;
  height: 12px;
  background: #666;
  cursor: pointer;
  margin-top: -5px;
}

.volume_slider_p::-moz-range-thumb {
  width: 2px;
  height: 12px;
  background: #666;
  cursor: pointer;
}

.btn_mute_p:hover + .volume_slider_p {
  opacity: 1;
  pointer-events: auto;
}

.options_menu_p {
  display: none;
  position: absolute;
  top: 50px;
  right: 0;
  background-color: #212223;
  border-radius: 5px;
  padding: 10px;
  width: 150px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  z-index: 10;
}

.options_menu_p button {
  background-color: transparent;
  border: none;
  color: white;
  font-size: 14px;
  margin: 5px 0;
  cursor: pointer;
}

.speed_menu_p {
  display: none;
  position: absolute;
  top: 0;
  left: 150px;
  background-color: #212223;
  border-radius: 5px;
  padding: 10px;
  width: 100px;
  z-index: 9;
}

.speed_menu_p button {
  background-color: transparent;
  border: none;
  color: white;
  font-size: 14px;
  margin: 5px 0;
  cursor: pointer;
}

.custom_audio_player_p:hover .options_menu_p,
.custom_audio_player_p:hover .speed_menu_p {
  display: block;
}

.btn_repeat_p {
  position: absolute;
  background: transparent;
  border: none;
  color: rgb(179, 13, 13);
  right: 0px;
  bottom: 0px;
}
.btn_mute_p {
  position: absolute;
  background: transparent;
  border: none;
  color: white;
  right: 20px;
  bottom: 0px;
}

.custom_audio_player_p:hover .volume_slider_p {
  opacity: 1;
  pointer-events: auto;
}
.time_display_p {
  position: absolute;
  right: 130px;
  top: 0px;
  white-space: nowrap;

  text-overflow: ellipsis;
  font-size: 12px;
}
.btn_options_menu_p {
  position: absolute;

  right: -10px;
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  bottom: -5px;
}
.active_repeat_button {
  position: absolute;
  right: 80px;

  bottom: -7px;
}
.audio_repeat_button_p {
  position: absolute;
  right: 80px;

  bottom: -7px;
}
.progress_bar_p {
  position: absolute;

  width: calc(100% - 60px - 160px);
  margin-left: 80px;
  margin-right: 240px;
  margin-top: auto;
  margin-bottom: auto;

  bottom: 9px;
}
.reload_audio_player_p {
  position: absolute;
  bottom: 0px;
  left: 10px;
}
.switch_button {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1002;
}
